//
//  LLNWRequestManager.h
//  LLFoundation
//
//  Created by my_liu on 2016/11/14.
//  Copyright © 2016年 . All rights reserved.
//

#import <UIKit/UIKit.h>
#import "LLNWHTTPConnection.h"
#import "AFHTTPSessionManager.h"

@interface LLNWRequestManager : AFHTTPSessionManager

/**
 *  http建立请求
 *
 *  @param manager 传nil即可
 *  @param requestInfo 请求所需的相关数据
 *  @param success 请求成功返回block
 *  @param failure 请求失败返回block
 */

- (void)start:(id)manager withInfo:(LLNWHTTPDetails *)requestInfo success:(void(^)(LLNWHTTPResponse *response))success failure:(void(^)(LLNWHTTPResponse *response))failure;

/**
 *  http请求cancel
 *
 *  @param requestKey request标示
 */
- (void)cancelRequestWithRequestKey:(NSString *)requestKey;

@end
